package net.tv90.auth.utils.web;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class Result {
    int code;
    String msg;
    Object data;

    public static Result success(Object data) {
        return new Result(0, "success", data);
    }

    public static Result failed(String msg) {
        return new Result(1, msg, null);
    }
}
